import React from 'react'
import { Space } from 'antd'
import './index.less'
export default (props) => {
  const { children, title, extra, classnames, style = {} } = props
  return <div style={style} className={`Title_box ${classnames}`}>
    <div className='Title_title'>
      <Space style={{ width: '100%' }} size={'large'}>
        <div>{title}</div>
        {extra ? extra : null}
      </Space>
    </div>
    {children}
  </div>
}